runtime.g.atomicstatus (field)
12 uses
runtime (current package)
coro.go#L155: if !gp.atomicstatus.CompareAndSwap(_Grunning, _Gwaiting) {
coro.go#L223: if !gnext.atomicstatus.CompareAndSwap(_Gwaiting, _Grunning) {
proc.go#L1110: return gp.atomicstatus.Load()
proc.go#L1132: success = gp.atomicstatus.CompareAndSwap(oldval, newval)
proc.go#L1152: r := gp.atomicstatus.CompareAndSwap(oldval, newval)
proc.go#L1193: for i := 0; !gp.atomicstatus.CompareAndSwap(oldval, newval); i++ {
proc.go#L1194: if oldval == _Gwaiting && gp.atomicstatus.Load() == _Grunnable {
proc.go#L1205: for x := 0; x < 10 && gp.atomicstatus.Load() != oldval; x++ {
proc.go#L1309: if gp.atomicstatus.CompareAndSwap(oldstatus, _Gcopystack) {
proc.go#L1324: for !gp.atomicstatus.CompareAndSwap(_Grunning, _Gscan|_Gpreempted) {
proc.go#L1336: return gp.atomicstatus.CompareAndSwap(_Gpreempted, _Gwaiting)
runtime2.go#L456: atomicstatus atomic.Uint32
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |